package com.des1gn.ymgetil.task;

import com.des1gn.ymgetil.service.TaskService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.scheduling.annotation.Scheduled;

//@Configuration
//@EnableScheduling
//@Slf4j
//public class GetilTask {
//
//    @Autowired
//    private TaskService taskService;
//
//    @Scheduled(cron = "0/1 * * * * ? ")
//    public void doTask() {
//        try {
//            log.warn("keep-log-执行任务--------------");
//            taskService.doTask();
//        }catch (Exception e) {
//            log.error("执行任务异常----{}",e);
//        }
//    }
//
//
//}
